package testing;

/**
 * Created by Time to be on 30.06.2014.
 */
public class SummOfChar {

    public int summOfChar(String text) {
        int summ = 0;
        char[] charArray = text.toCharArray();
        for (int i = 0; i < text.length(); i++){
            summ = summ + (int)charArray[i];
        }
        return summ;
    }
//end.
}
